<html>
<head><meta charset="utf-8"><title>Maybe we should go to GHIR · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Maybe.20we.20should.20go.20to.20GHIR.html">Maybe we should go to GHIR</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="207012746"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Maybe%20we%20should%20go%20to%20GHIR/near/207012746" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mr Smeet <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Maybe.20we.20should.20go.20to.20GHIR.html#207012746">(Aug 15 2020 at 09:04)</a>:</h4>
<p>I find reasonable up lvl of abstraction and use graph DSL like Cypher for directly accessing to graphs inside code. So what do you think about it?</p>



<a name="207012973"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Maybe%20we%20should%20go%20to%20GHIR/near/207012973" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mr Smeet <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Maybe.20we.20should.20go.20to.20GHIR.html#207012973">(Aug 15 2020 at 09:11)</a>:</h4>
<p>If there are no objections or comments, immediately after the current task, I will move on to this task. Or maybe have sense use whole graph query language</p>



<a name="207027831"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Maybe%20we%20should%20go%20to%20GHIR/near/207027831" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Maybe.20we.20should.20go.20to.20GHIR.html#207027831">(Aug 15 2020 at 16:09)</a>:</h4>
<p>I agree that we need some more structured way to represent Rust code for an IDE</p>



<a name="207027883"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Maybe%20we%20should%20go%20to%20GHIR/near/207027883" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Maybe.20we.20should.20go.20to.20GHIR.html#207027883">(Aug 15 2020 at 16:10)</a>:</h4>
<p><a href="https://github.com/GabrielDosReis/ipr">https://github.com/GabrielDosReis/ipr</a> seems like a good model to learn from</p>



<a name="207027897"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Maybe%20we%20should%20go%20to%20GHIR/near/207027897" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Maybe.20we.20should.20go.20to.20GHIR.html#207027897">(Aug 15 2020 at 16:11)</a>:</h4>
<p>However, I think the main question is not the "shape" of model (graph, sea of objects, table of facts), but, rather, what are the entities that we are modeling.</p>



<a name="207027943"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Maybe%20we%20should%20go%20to%20GHIR/near/207027943" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Maybe.20we.20should.20go.20to.20GHIR.html#207027943">(Aug 15 2020 at 16:12)</a>:</h4>
<p>As in, I have a very fuzzy boundaries in my head beween ide, hir, and hir_xxx crates. Without making those boundaries crisp, it doesn't really matter what specific formalism we use to describe things.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>